﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Torimi.Wiki.Web
{
	public partial class WikiPage : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			// http://msdn.microsoft.com/en-us/library/dd535620.aspx
			string wikiPageName = Page.RouteData.Values["Name"].ToString();
			var wikiPage = Services.WikiInstance.GetPage(wikiPageName);
			MyWikiPage = wikiPage;
		}

		public DataObjects.WikiPage MyWikiPage { get; set; }
	}
}